exports.watchNum = (req,res)=> { 
	  let article = global.dbHelper.getModel('article');
    let id = req.params.id,
        watchNum = req.params.watchNum;


    article.update({_id:id},{$set: {"watchNum":watchNum}},(err,doc)=>{
        if(err){
           	 	console.log(err)
       	  	  res.json({
      			 	 		"code": 500,
      			 	 		"msg":"更新失败"
			        })
         }else{
              res.json({
    			 	 		"code": 200,
    			 	 		"msg":"更新成功",
    			 	 		"result": doc
    			     })

               console.log(doc)
          }
    })
}